import type { CommonReturnListItem } from '../schema/all'

export type DnsItem = CommonReturnListItem<'/api/resolve/dns-apis', 'get'> & {
  provider_config: {
    addr?: string
    app_id?: string
    app_key?: string
    api_token?: string
  }
}

export type DomainItem = CommonReturnListItem<'/api/resolve/domains', 'get'>

export type AreaItem = CommonReturnListItem<'/api/resolve/regions', 'get'>

export type ResolveSiteItem = CommonReturnListItem<
  '/api/resolve/region/site-bindings',
  'get'
>
